package com.kexio.enterprise.integration.event.result;

import java.time.LocalDateTime;

/**
 * 事件重放结果
 * 
 * @author Kexio
 * @since 1.0.0
 */
public class EventReplayResult {
    private boolean success;
    private String eventId;
    private String originalEventId;
    private LocalDateTime replayTime;
    private String errorMessage;

    public EventReplayResult(boolean success, String eventId) {
        this.success = success;
        this.eventId = eventId;
        this.replayTime = LocalDateTime.now();
    }

    // Getters and Setters
    public boolean isSuccess() { return success; }
    public void setSuccess(boolean success) { this.success = success; }
    
    public String getEventId() { return eventId; }
    public void setEventId(String eventId) { this.eventId = eventId; }
    
    public String getOriginalEventId() { return originalEventId; }
    public void setOriginalEventId(String originalEventId) { this.originalEventId = originalEventId; }
    
    public LocalDateTime getReplayTime() { return replayTime; }
    public void setReplayTime(LocalDateTime replayTime) { this.replayTime = replayTime; }
    
    public String getErrorMessage() { return errorMessage; }
    public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; }
}
